<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>	
	<h6><kbd>&nbsp;权限规则管理&nbsp;</kbd></h6>
	<form action="">
	<input type="submit" class="btn btn-info col-sm-2" formaction="{:U(MODULE_NAME.'/Role/createRule')}" value="添加规则" /><table class="table table-hover table-striped table-responsive">
					<thead>
						<th>标识</th>
						<th>名称</th>
						<th>类型</th>
						<th>状态</th>
						<th>状操作</th>
					</thead>
					<tbody>
					<foreach name="rules" item="r"> 
						<tr>
						<td>{$r.name}</td>
						<td>{$r.title}</td>
						<td><kbd>{$r.type}</kbd></td>
						<td><kbd>
						{$r['status']==1?'启用':'禁用'}
						</kbd>
						</td>
						<td>
							<div class="btn-group btn-group-xs">
								<a href="{:U(MODULE_NAME.'/Role/createRule',array(id=>$r['id']))}" class="btn btn-info">编辑</a>
								<a onclick="ShowDialog(this)" data-url="{:U(MODULE_NAME.'/Role/deleteRule',array(id=>$r['id']))}" class="btn btn-danger">删除</a>
							</div>
						</td>
						</tr>
					</foreach>
					</tbody>
				</table>
			</form>
			  {:W('Modal/dialog',array("删除提示","你确定要删除选择的规则信息嘛？"))}
			  <script src="__PUBLIC__/js/dialogHandle.js"></script>
	</body>		
</html>
